<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>系统管理中心</title>
    <link href="__CSS_ADMIN_PATH__reset.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__zh-cn-system.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles1.css" title="styles1" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles2.css" title="styles2" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles3.css" title="styles3" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles4.css" title="styles4" media="screen" />

    <link href="__CSS_ADMIN_PATH__dialog.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__table_form.css" rel="stylesheet" type="text/css">
    <script src="__JS_PATH__jquery-1.8.3.js" type="text/javascript"></script>
    <script src="__JS_PATH__jquery-ui.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="__JS_PATH__dialog.js"></script>

    <script src="__JS_ADMIN_PATH__wysiwyg.js" type="text/javascript"></script>
    <script src="__JS_ADMIN_PATH__functions.js" type="text/javascript"></script>
    <!--<script src="/public/index/js/lang.js" type="text/javascript"></script>-->

    <script src="__JS_PATH__Validform_v5.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        var isIE = (document.all && window.ActiveXObject && !window.opera) ? true : false;
        function Dd(i) {return document.getElementById(i);}
        function Eh(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'hidden';}
            }
        }
        function Es(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'visible';}
            }
        }
    </script>
</head>
<body>


<script type="text/javascript">

    /**
     * 全选checkbox,注意：标识checkbox id固定为为check_box
     * @param string name 列表check名称,如 uid[]
     */
    function selectall(name) {
        //alert(name);
        if ($("#check_box").attr("checked")=='checked') {
            $("input[name='"+name+"']").each(function() {
                $(this).attr("checked","checked");


            });
        } else {
            $("input[name='"+name+"']").each(function() {
                $(this).removeAttr("checked");
            });
        }
    }
    function confirm_delete(){
        if(confirm('确认删除吗？')) $('#myform').submit();
    }
</script>

<script type="text/javascript" src="__PUBLIC_PATH__fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="__PUBLIC_PATH__fancybox/source/jquery.fancybox.js"></script>

<link rel="stylesheet" type="text/css" href="__PUBLIC_PATH__fancybox/source/jquery.fancybox.css" media="screen" />
 

<script type="text/javascript">
    $(document).ready(function() {
        /*
         *  Simple image gallery. Uses default settings
         */

        $('.fancybox').fancybox();

        $("#fancybox-manual-b").click(function() {
            $.fancybox.open({

                type : 'iframe',
                padding : 5
            });
        });



    });
</script>
<style type="text/css">
    .fancybox-custom .fancybox-skin {
        box-shadow: 0 0 50px #222;
    }
</style>
<div class="pad-10">
<div class="content-menu ib-a blue line-x">
<?php echo ($nav_submenu); ?>
</div>
	 <form name="myform" id="myform" action="" method="post" >
        <div class="table-list">

            <table  width="68%"><!-- Table -->
				<thead>
						<tr>
                    <th><input type="checkbox" id="check_box"  class="checkall" onclick="selectall('ids[]');" /></th>
							<th>用户名</th>
                            <th>真实姓名</th>
							<th>电子邮箱</th>
							<th>角色名称</th>
                            <th>添加时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<script type="text/javascript" >
							$(function(){
							$('.confirm_del').click(function(){
								return confirm('确认要删除？');
            
							 })
        
						})
					</script>
					<tbody>
						<?php if(is_array($adminlist)): $i = 0; $__LIST__ = $adminlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$admin): $mod = ($i % 2 );++$i;?><tr>
                        <td align="center"><input type="checkbox"  class="inputcheckbox "  name="ids[]" value="<?php echo ($admin["adminid"]); ?>" /></td>
							<td><?php echo ($admin["adminuser"]); ?></td>
                                <td><?php echo ($admin["truename"]); ?></td>
							<td><?php echo ($admin["adminemail"]); ?></td>
							<td><?php echo ($admin["rolename"]); ?></td>
                                <td><?php echo ($admin["addtime"]); ?></td>
							<td>
                                <?php
 $is_list=0; if($session['roleid'] > $admin['id']) { $is_list=0; } else { $is_list=1; } ?>
                                <?php
 if( $is_list==1) { if($egarr['29']){ ?>
							<a href="__APP_PATH__index.php?g=Admin&m=Admin_manage&a=edit&id=<?php echo ($admin["adminid"]); ?>"  class="fancybox fancybox.iframe" ><font color="green">修改</font></a>&nbsp;&nbsp;
							<?php  } if(!empty($egarr['30'])){ ?>
							<a href="__URL__/delstate/id/<?php echo ($admin["adminid"]); ?>" class="confirm_del" ><font color="red">删除</font></a>&nbsp;&nbsp;
							<?php } ?>

                                <?php
 } ?>
							</td>
						</tr><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>
				</table> <!-- END Table -->

        </form>
    <div id="pages" class="text-c">
            <?php echo ($adminpage); ?>
        <div>
	
			

			
		</div> <!-- END Content -->
	</div>